/*package com.amigo.online.gateway.filter;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.util.StringUtils;

import com.amigo.online.common.param.result.LocalUserInfo;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;

*//**
 * 地理信息拦截,
 * @author Administrator
 *
 *//*
public class LocationFilter extends ZuulFilter{
	
	@SuppressWarnings("rawtypes")
	@Autowired
	RedisTemplate redisTemplate;
	
	@Override
	public Object run() throws ZuulException {
		RequestContext requestContext = RequestContext.getCurrentContext();
		HttpServletRequest request = requestContext.getRequest();
		String token = request.getHeader("ACCESS_TOKEN");
		if(StringUtils.isEmpty(token))
	        token = request.getParameter("access_token");
		if(!StringUtils.isEmpty(token)) {
			LocalUserInfo user = (LocalUserInfo)redisTemplate.opsForValue().get(token);
		}
		
		return null;
	}

	@Override
	public boolean shouldFilter() {
		return false;
	}

	@Override
	public int filterOrder() {
		return 0;
	}

	@Override
	public String filterType() {
		return "pre";
	}

}
*/